package model

import "time"

type User struct {
	ID         int64     `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
	UserName   string    `gorm:"column:user_name" json:"user_name"`
	Password   string    `gorm:"column:password" json:"password"`
	CreateTime time.Time `gorm:"column:create_time;autoCreateTime" json:"create_time"`
	EditTime   time.Time `gorm:"column:edit_time;autoUpdateTime" json:"edit_time"`
}

func (User) TableName() string {
	return "user_info"
}
